home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Demos / AppMaker 2.0b3 / Demo AppMaker 1.5 / Demo AppMaker™ / Demo AppMaker™.rsrc / TmCT_114_SubWindow < prev    next >
Encoding:
Text File  |  1992-04-08  |  1.7 KB  |  69 lines

  1. /* %filename% -- subwindow methods */
  2. /* Created %date% %time% by AppMaker */
  3.  
  4. /*    This module overrides the AppMaker-generated code in z%WindName%.%        %*/
  5. /*    It provides a place for you to add your own code and still be able to    */
  6. /*    generate code for new changes to the user interface.  This module will    */
  7. /*    not be regenerated by AppMaker unless you delete it.  Its superclass,    */
  8. /*    z%WindName%, may be regenerated to handle user interface changes%        %*/
  9. /*    without losing your hand-coded changes to this module.                    */
  10.  
  11. #include <Commands.h>
  12. #include <CBartender.h>
  13. #include <CDecorator.h>
  14. #include <CDirector.h>
  15. #include <TBUtilities.h>
  16. #include "ResourceDefs.h"
  17. %for each item gen include%
  18. #include "%appname%Data.h"
  19. #include "%WindName%.h"
  20.  
  21. extern    CBartender        *gBartender;    /* The menu handling object */
  22. extern    CDecorator        *gDecorator;    /* Window dressing object */
  23.  
  24. %for each item gen defineItem%
  25.  
  26. /*----------*/
  27. void    C%WindName%::I%WindName%    (CDirector            *aSupervisor,
  28.                                      C%appname%Data%    %*theData)
  29. {
  30.     itsData = theData;
  31.     inherited::IZ%WindName% (aSupervisor);
  32.     gDecorator->StaggerWindow (itsWindow);
  33.  
  34.     // any additional initialization for your window
  35.  
  36. } /* I%WindName% */
  37.  
  38. %for each item gen auxiliaryMethod%
  39. /*----------*/
  40. void    C%WindName%::UpdateMenus    (void)
  41. {
  42.     inherited::UpdateMenus ();
  43.  
  44. } /* UpdateMenus */
  45.  
  46. /*----------*/
  47. void    C%WindName%::DoCommand        (long        theCommand)
  48. {
  49.     switch (theCommand) {
  50.         %for each item gen DoCommand%
  51.  
  52.         default:
  53.                 inherited::DoCommand (theCommand);
  54.             break;
  55.     } /* switch */
  56.  
  57. } /* DoCommand */
  58.  
  59. /*----------*/
  60. void    C%WindName%::ProviderChanged%    %(CCollaborator    *aProvider,
  61.                                          long            reason,
  62.                                          void*            info)
  63. {
  64.     %for each item gen ProviderChanged%
  65.  
  66. } /* ProviderChanged */
  67.  
  68. /* %filename% */
  69.